Component({
  data: {
    Birthday: '',
    friendRemarkName: ''
  },
  properties: {
    item: {
      type: Object,
      value: {}
    }
  },
  ready() {
    this.setData({
      Birthday: this.getBirthday(this.properties.item.NextBirthday),
      friendRemarkName: unescape(this.properties.item.FriendRemarkName),
    });
  },
  methods: {
    getBirthday(time) {
      const data = new Date(time);
      return `${data.getMonth()+ 1}月${data.getDate()}日`;
    }
  }
});
